<%--
/**
* Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
--%>

<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>

<portlet:defineObjects />

<%@include file="/html/init.jsp" %>

<%
	String redirect = PortalUtil.getCurrentURL(renderRequest);	
%>

<aui:button-row>

	<portlet:actionURL name='importAllUsers' var="importAllUsersURL" />
    
	<aui:button value="import-all-users" onClick="<%= importAllUsersURL.toString() %>"/>
</aui:button-row>


<liferay-ui:search-container delta='<%= GetterUtil.getInteger(prefs.getValue("rowsPerPage", "5")) %>' emptyResultsMessage="no-users-found-message">
	<liferay-ui:search-container-results
		results="<%= UsersLocalServiceUtil.getUserses(searchContainer.getStart(), searchContainer.getEnd()) %>"
		total="<%= UsersLocalServiceUtil.getUsersesCount() %>"
	/>

	<liferay-ui:search-container-row
		className="com.hwccl.importor.users.model.Users"
		keyProperty="id"
		modelVar="users"
	>
		<liferay-ui:search-container-column-text
			name="screenName"
			value="<%= users.getScreenName() %>"
		/>

		<liferay-ui:search-container-column-text
			name="email-address"
			property="email"
		/>

		<liferay-ui:search-container-column-text
			name="male"
			property="male"
		/>

		<liferay-ui:search-container-column-text
			name="First Name"
			property="firstName"
		/>
		
		<liferay-ui:search-container-column-text
			name="Last Name"
			property="lastName"
		/>		
		
		<liferay-ui:search-container-column-text
			name="Job Title"
			property="jobtitle"
		/>			
		
		<liferay-ui:search-container-column-text
			name="Organization"
			property="organization"
		/>	
		
		<liferay-ui:search-container-column-text
			name="Department"
			property="department"
		/>	
		

		<liferay-ui:search-container-column-jsp
			align="right"
			path="/html/userinterface/users_actions.jsp"
		/>
	</liferay-ui:search-container-row>

	<liferay-ui:search-iterator />
</liferay-ui:search-container>